ComponentOne Xamarin.Android
OnCreateViewHolder Method


C1.Android.CollectionView Assembly > C1.Android.CollectionView Namespace > C1RecyclerViewAdapter<T> Class : OnCreateViewHolder Method
Syntax
'Declaration
 
<Android.Runtime.RegisterAttribute("onCreateViewHolder", 
   "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;", 
   "GetOnCreateViewHolder_Landroid_view_ViewGroup_IHandler")>
Public Overrides NotOverridable Function OnCreateViewHolder( _
   ByVal parent As Android.Views.ViewGroup, _
   ByVal viewType As Integer _
) As Android.Support.V7.Widget.RecyclerView.ViewHolder
'Usage
 
Dim instance As C1RecyclerViewAdapter(Of T)
Dim parent As Android.Views.ViewGroup
Dim viewType As Integer
Dim value As Android.Support.V7.Widget.RecyclerView.ViewHolder
 
value = instance.OnCreateViewHolder(parent, viewType)
[Android.Runtime.Register("onCreateViewHolder", 
   "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;", 
   "GetOnCreateViewHolder_Landroid_view_ViewGroup_IHandler")]
public override Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder( 
   Android.Views.ViewGroup parent,
   int viewType
)

Parameters

parent
viewType
See Also

Reference

C1RecyclerViewAdapter<T> Class
C1RecyclerViewAdapter<T> Members